/**
 * Created by Administrator on 2017/8/25.
 */
import { handleActions } from 'redux-actions'
import * as T from '../action/actionTypes'
const initialState = {
  items: []
}
export const navigationsReducer = handleActions({
  [T.GET_NAVIGATIONS](state, action) {
    console.log('action')
    return {
      ...state,
      items: action.payload.data
    }
  }
}, initialState)
